/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.objectsearch.sqlsearch;

/**
 * contains the property mapped to an object in the database
 * 
 * @author Carlos
 */
public class ObjectProperty {

	/**
	 * the name of the property in the object
	 */
	private String name;

	/**
	 * the type retrieved in the query of the object
	 */
	private String type;

	/**
	 * the equivalent of the property in the table schema
	 */
	private String dbEquivalent;

	/**
	 * gets the equivalent of the property in the table schema
	 * 
	 * @return the equivalent of the property in the table schema
	 */
	public String getDbEquivalent() {
		return dbEquivalent;
	}

	/**
	 * sets the equivalent of the property in the table schema
	 * 
	 * @param dbEquivalent
	 *            the equivalent of the property in the table schema
	 */
	public void setDbEquivalent(String dbEquivalent) {
		this.dbEquivalent = dbEquivalent;
	}

	/**
	 * the name of the property in the object
	 * 
	 * @return the name of the property in the object
	 */
	public String getName() {
		return name;
	}

	/**
	 * sets the name of the property in the object
	 * 
	 * @param name
	 *            the name of the property in the object
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * gets the type of the object used in the database
	 * 
	 * @return the type of the object used in the database
	 */
	public String getType() {
		return type;
	}

	/**
	 * sets the type of the object used in the database
	 * 
	 * @param type
	 *            the type of the object used in the database
	 */
	public void setType(String type) {
		this.type = type;
	}

}
